import request from '@/utils/request';

export function getPurchases(data) {
  return request({
    url: '/scm/api/purchase/page',
    method: 'post',
    data,
  });
}

export function purchaseReject(data) {
  return request({
    url: '/scm/api/purchase/receive/reject',
    method: 'post',
    data,
  });
}

export function purchaseCancel(data) {
  return request({
    url: '/scm/api/purchase/cancel/pic',
    method: 'get',
    data,
  });
}

export function purchaseConfirml(data) {
  return request({
    url: '/scm/api/purchase/confirm',
    method: 'get',
    data,
  });
}
export function purchaseitems(data) {
    return request({
      url: '/scm/api/purchase/item/list',
      method: 'get',
      data,
    });
  }

